package cn.ac.jaas.isc.vegetable.admin.service.impl;

import cn.ac.jaas.isc.vegetable.admin.api.entity.SysUserRole;
import cn.ac.jaas.isc.vegetable.admin.mapper.SysUserRoleMapper;
import cn.ac.jaas.isc.vegetable.admin.service.SysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @author 张高昌
 * @date 2022/4/28 14:25
 * @description: 功能描述
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {

    /**
     * 根据用户Id删除该用户的角色关系
     *
     * @param userId 用户ID
     * @return boolean
     * @date 2017年12月7日 16:31:38
     */
    @Override
    public Boolean deleteByUserId(Integer userId) {
        return baseMapper.deleteByUserId(userId);
    }

}
